import request from '@/utils/request'

export function applList(page, size, type,name) {
  return request({
    url: '/apply/list',
    method: 'get',
    params: page, size, type, name
  })
}

export function applById(id) {
  return request({
    url: '/apply/findById',
    method: 'get',
    params: id
  })
}
export function handoverRefuse(data) {
  return request({
    url: '/handover/refuse',
    method: 'post',
    data
  })
}
export function applAudit(data) {
  return request({
    url: '/apply/audit',
    method: 'post',
    data
  })
}

export function handoverList(params) {
  return request({
    url: '/handover/list',
    method: 'get',
    params
  })
}

export function handoverById(id) {
  return request({
    url: '/handover/findById',
    method: 'get',
    params: id
  })
}

export function handoverAudit(data) {
  return request({
    url: '/handover/audit',
    method: 'post',
    data
  })
}
